@extends('layout/layout')

@section('content')
    <div id="postform">
        <form method="POST" action="{{url('post')}}">
            {{csrf_field()}}
            {{$user['username']}}, 有啥感想?
            <br>
            <table>
                <tr><td><textarea cols="70" rows="3" name="status"></textarea></td></tr>
                <tr><td align="right"><input type="submit" name="doit" value="Update"></td></tr>
            </table>
        </form>
        <div id="homeinfobox">
            {{$bgz}} 粉丝<br>
            {{$gz}} 关注<br>
        </div>
    </div>
    @foreach($res as $k => $v)
    <div class="post">
        <a class="username" href="{{url('profile/'.$v[0])}}">{{$v[3]}}</a>{{$v[2]}}<br>
        <i>{{\App\Http\Helper::formattime($v[1])}} 前 通过 web发布</i>
    </div>
    @endforeach
@endsection